home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / sgi.faq.admin < prev    next >
Encoding:
Internet Message Format  |  1994-05-07  |  46.0 KB

  1. Subject: SGI admin Frequently Asked Questions (FAQ)
  2. Newsgroups: comp.sys.sgi.misc,comp.answers,news.answers
  3. From: sgi-faq@viz.tamu.edu (The SGI FAQ group)
  4. Date: 6 May 1994 06:00:08 GMT
  5.  
  6. Archive-name: sgi/faq/admin
  7. Last-modified: Thu May  5 16:16:30 CDT 1994
  8.  
  9.     SGI admin Frequently Asked Questions (FAQ)
  10.  
  11. This is one of the Silicon Graphics FAQ series, which consists of:
  12.  
  13.     SGI admin FAQ - IRIX system administration
  14.     SGI apps FAQ - Applications & compilers
  15.     SGI graphics FAQ - Graphics and user environment customization
  16.     SGI hardware FAQ - Hardware
  17.     SGI inventor FAQ - IRIS Inventor
  18.     SGI misc FAQ - Introduction & miscellaneous information
  19.     SGI performer FAQ - IRIS Performer
  20.     SGI pointer FAQ - Pointer to the other FAQs
  21.  
  22. Read the misc FAQ for information about the FAQs themselves.  Each FAQ
  23. is posted to comp.sys.sgi.misc and to the news.answers and comp.answers
  24. newsgroups (whose purpose is to store FAQs) twice per month.  If you
  25. can't find one of the FAQs with your news program, you can get it by
  26. anonymous FTP from one of these sites:
  27.  
  28.     rtfm.mit.edu:/pub/usenet/comp.sys.sgi.misc/
  29.     rtfm.mit.edu:/pub/usenet/news.answers/sgi/faq/
  30.     rtfm.mit.edu:/pub/usenet/comp.answers/sgi/faq/
  31.     viz.tamu.edu:/pub/sgi/faq/
  32.  
  33. Note that rtfm.mit.edu is home to many other FAQs and informational
  34. documents, and is a good place to look if you can't find an answer
  35. here. If you can't use FTP, send mail to mail-server@rtfm.mit.edu with
  36. the command 'send usenet/news.answers/ftp-list/faq' on a line by itself
  37. in the text, and it will send you a document describing how to FTP by
  38. mail. You can also read a hypertext version of the FAQs at
  39.  
  40.     http://www.cis.ohio-state.edu/hypertext/faq/usenet/sgi/top.html
  41.  
  42. The SGI FAQs are freely distributable and we encourage wide circulation.
  43. The contents are accurate as far as we know, but the usual disclaimers
  44. apply. Please send additions and changes to sgi-faq@viz.tamu.edu.
  45.  
  46. Topics covered in this FAQ:
  47. ---------------------------
  48.    -1- How can I determine which release of IRIX I'm running?
  49.    -2- How can I determine my SGI's Ethernet (and/or FDDI) address?
  50.    -3- How can I administer my Iris without a graphics terminal?
  51.    -4- Is it possible to use the visual admin tools on a system with
  52.        graphics to administer a system without graphics?
  53. +  -5- How can I fix the objectserver when it gets confused?
  54.    -6- How can I boot directly into single-user mode?
  55.    -7- How can I boot from a non-default disk?
  56.    -8- How can I boot my machine using a server on the other side of a
  57.        router?
  58.    -9- Is it possible to remotely install IRIX over a network?
  59.   -10- Which IRIX CD is the program 'foo' on?
  60.   -11- Why doesn't 'inst' work?
  61. + -12- Why doesn't 'inst' work remotely?
  62.   -13- I reinstalled an IRIX subsystem to restore a missing file or get
  63.        rid of a corrupted file, but it didn't help. Why not?
  64.   -14- How can I install IRIX onto a second disk which I can then move
  65.        to another machine?
  66.   -15- How can I copy my system disk onto a second disk which I can then
  67.        move to another machine?
  68.   -16- I think I've found a security hole in IRIX; whom do I notify at
  69.        SGI?
  70. ! -17- What security problems does IRIX have?
  71.   -18- How can I log more information about logins?
  72.   -19- I've just edited inetd.conf, and nothing changed. Why?
  73. ! -20- How do I make an anonymous or restricted FTP account?
  74.   -21- How do I set the number of processes allowed on my machine?
  75.   -22- I want to install a termcap for 'iris-ansi-net' on my non-SGI
  76.        system, but I can't find a termcap file on the SGI.  Where can I
  77.        get one?
  78.   -23- My SGI crashed and generated a file, /usr/adm/crash/vmcore.1. How
  79.        can I examine this file to see what crashed my system?
  80.   -24- How can I tell what hostname to use in /etc/exports?
  81.   -25- Why can't I export an NFS-mounted filesystem?
  82.   -26- Why can't Ultrix automount SGI filesystems?
  83.   -27- Why does 'tar' work strangely on a filesystem mounted from an
  84.        SGI?
  85.   -28- Is 'pcnfsd' available for the SGI?
  86.   -29- Can I export a CD-ROM from my SGI to a non-SGI?
  87.   -30- Why can't I export an ISO 9660 CD-ROM using NFS?
  88.   -31- How can I read an IRIX (EFS) CD-ROM on a machine which doesn't
  89.        use EFS?
  90.   -32- Why is my network license daemon ('netlsd') exiting?
  91.   -33- Why isn't /usr/adm/SYSLOG being updated?
  92.   -34- Why is 'rusers' showing users who aren't really logged in?
  93.   -35- How do I make a bootable tape from an IRIX 4.0.X CD?
  94.   -36- Why can't I boot one of the stand-alone programs on a tape or CD?
  95.   -37- Why is /debug or /proc full of huge files?
  96.   -38- Why do some programs parse /etc/fstab incorrectly?
  97.   -39- My Indigo's Ethernet performance is dog-slow. What gives?
  98.   -40- My Indigo running 4.0.5IOP is getting SIGSEGVs and crashing. What
  99.        gives?
  100.   -41- Why is my Indigo2 panicking?
  101.   -42- What's this 'iotim' error in my syslog?
  102.   -43- Why can't 'lp' read my file?
  103.   -44- How can I use 'lpr' to print to my local printer?
  104.   -45- How can I use 'lp' to print to an 'lpr'-controlled printer?
  105.   -46- How can I tell 'lp' to turn banner printing or page reversal off
  106.        or on?
  107.   -47- Why can't I 'rdist' files between Suns and SGIs?
  108.   -48- How do I add a static route?
  109.   -49- How can I make the 'slip' command advertise the Ethernet address
  110.        of the SLIP client?
  111.   -50- How can I set up 'sendmail' to pass 8-bit characters?
  112.   -51- Why are my mailbox files changing ownership?
  113.   -52- Why isn't a valid user getting their mail?
  114.   -53- How can SGIs and Suns share a mail spool?
  115.   -54- What's an "unknown mailer error"?
  116.   -55- What's "mailbox: Error 0"?
  117.   -56- Can I change my full name or login shell without being superuser?
  118.   -57- How do I extend an existing filesystem onto a new disk?
  119.   -58- How can I measure my network's reliability?
  120.   -59- How do I know if I need more memory and/or swap space?
  121.   -60- How much swap space should I have per megabyte of memory?
  122.   -61- How can I increase my swap space?
  123.  
  124. ----------------------------------------------------------------------
  125.  
  126. Subject:    -1- How can I determine which release of IRIX I'm running?
  127. Date: 07 Feb 94 00:00:01 CST
  128.  
  129. 'uname -a' gives you all the kernel info; see the uname(1) manpage for
  130. other options.
  131.  
  132. Of more general use, since kernels don't always reflect installed
  133. software, is the 'versions' command.  'versions' with no arguments
  134. lists all the installed software subsystems.
  135.  
  136. IRIX 5.2's System Manager ('chost') has the IRIX version number under
  137. "IRIX Version" and a listing of installed software under "Software"
  138. (the "Show Installed" button).
  139.  
  140. ------------------------------
  141.  
  142. Subject:    -2- How can I determine my SGI's Ethernet (and/or FDDI)
  143.                 address?
  144. Date: 07 Feb 94 00:00:01 CST
  145.  
  146. Many thanks to Miguel Sanchez <miguel@oasis.csd.sgi.com> for providing
  147. the original version of the following discussion, and to Dave Olson
  148. <olson@sgi.com> for comments. Andrew Cherenson
  149. <arc@sgi.com> reminded us that all these methods except
  150. the first apply to FDDI as well, but we'll just say "Ethernet" below.
  151.  
  152. Every system on an Ethernet network must have a unique Ethernet address
  153. for the network to operate properly. The physical Ethernet address of
  154. your system is the unique number assigned to the Ethernet hardware on
  155. your system. This unique number is assigned to the manufacturer of your
  156. Ethernet hardware by the IEEE (formerly by Xerox, one of the original
  157. developers of Ethernet). This is not to be confused with the IP
  158. address, which can be set arbitrarily.
  159.  
  160. You may need to determine your system's Ethernet address if your
  161. network manager requires it before connecting your system to a
  162. network.  How to do so depends on whether IRIX is running and what
  163. operating system version is loaded.  Method 1 only provides the
  164. Ethernet address of the primary interface.  If you have multiple
  165. Ethernet interfaces (boards) in a system, use method 2, 3, 4 or 5 to
  166. determine the address(es) of any other interface(s).
  167.  
  168. METHOD 1: eaddr
  169.  
  170.     If IRIX is not running, and the system is a Personal IRIS (4D20,
  171.     25, 30, or 35), Indigo, Crimson, Onyx or Challenge, you can obtain
  172.     the Ethernet address by typing 'eaddr' (older machines) or
  173.     'printenv eaddr' (newer) at the PROM monitor prompt.  On some
  174.     machines (4D30 or later) you can say 'nvram eaddr' while IRIX is
  175.     running to get the same result.
  176.  
  177. METHOD 2: netstat
  178.  
  179.     Under IRIX 4.0.1 or later, you can use the netstat command. For
  180.     example,
  181.  
  182.     % /usr/etc/netstat -ia
  183.     Name  Mtu    Network   Address            Ipkts   Ierrs   Opkts  Oerrs  Coll
  184.     ec0   1500   siligrph  luey7              7765678 21648  384477     0  30338
  185.                 192.48.200.251
  186.                 192.0.0.1
  187.                 08:00:69:06:17:c2
  188.     lo0   32880  loopback localhost           41438       0   41438     0      0
  189.                 192.0.0.1
  190.  
  191.     As seen on the fourth address line, the address of the system
  192.     luey7's primary Ethernet interface, "ec0", is 08:00:69:06:17:c2.
  193.  
  194. METHOD 3: arp
  195.  
  196.     You can obtain the Ethernet address of a Silicon Graphics system by
  197.     using another system on your network. 'ping' the system whose
  198.     Ethernet address you want, then use 'arp'. For example,
  199.  
  200.     % /usr/etc/ping -c 1 luey6
  201.     PING luey6.sgi.com (192.48.200.250): 56 data bytes
  202.     64 bytes from 192.48.200.250: icmp_seq=0 ttl=255 time=0 ms
  203.     ----luey6.sgi.com PING Statistics----
  204.     3 packets transmitted, 3 packets received, 0% packet loss
  205.     round-trip (ms)  min/avg/max = 0/0/0
  206.     % /usr/etc/arp luey6
  207.     luey6 (192.48.200.250) at 8:0:69:6:c:40
  208.     %
  209.  
  210. METHOD 4: NetVizualyzer/FDDIVizualyzer and the like
  211.  
  212.     SGI's NetVizualyzer/FDDIVizualyzer network monitoring software and
  213.     at least one public domain equivalent ('netman', at
  214.     ftp.cs.curtin.edu.au:/pub/netman/) allow you to find the Ethernet
  215.     address corresponding to any IP address. Read the manual.
  216.  
  217. METHOD 5: System Manager
  218.  
  219.     The Network Setup part ('cnet') of IRIX 5.2's System Manager tool
  220.     ('chost') shows the Ethernet address of each interface.
  221.  
  222. 4DDN: A Special Case
  223.  
  224.     DECnet uses a one-to-one relationship between the DECnet node ID
  225.     and the Ethernet address. If the DECnet address is changed the
  226.     Ethernet address is changed. DECnet Ethernet addresses always start
  227.     with aa:, so you can identify systems running DECnet with 'arp -a'.
  228.  
  229.     4DDN is Silicon Graphics' DECnet interconnection product. The
  230.     Ethernet address of an IRIS running 4DDN will change when 4DDN is
  231.     started.  Method 1 will return the original Ethernet address for
  232.     the system.  Methods 2-5 will show the Ethernet address currently
  233.     in use.
  234.  
  235. sysinfo
  236.  
  237.     /etc/sysinfo is intended to return a unique identifier, which on
  238.     some machines includes part or all of the Ethernet address. This is
  239.     best regarded as an amusing coincidence, like HAL's name in "2001".
  240.     Don't rely on it.
  241.  
  242. ------------------------------
  243.  
  244. Subject:    -3- How can I administer my Iris without a graphics
  245.                 terminal?
  246. Date: 13 Apr 94 00:00:01 EST
  247.  
  248. The visual admin tools in IRIX 4.0.x ('vadmin') need GL, and do not
  249. work on X terminals or workstations without GL. You can use 'sysadm' on
  250. text terminals for some tasks, but beware of bugs and inadequacies: SGI
  251. judged 'sysadm' to be too buggy to be worth updating for IRIX 5.x.
  252.  
  253. The visual admin tools in IRIX 5.x (x > 2) should display on any X
  254. display, *except* for the backup/restore tool which is an exact port
  255. from IRIX 4.0.x and requires GL. Some images will be missing when GL is
  256. unavailable, but the tools will function properly. As for text
  257. terminals, you're out of luck: 'sysadm' does not exist in IRIX 5.x.
  258.  
  259. Of course, you can always use a text editor and write scripts, or see
  260. the next question.
  261.  
  262. ------------------------------
  263.  
  264. Subject:    -4- Is it possible to use the visual admin tools on a system
  265.                 with graphics to administer a system without graphics?
  266. Date: 12 Feb 94 00:00:01 CST
  267.  
  268. Yes: just rlogin to the graphics-less system and run 'vadmin' (IRIX
  269. 4.0.x) or 'chost' (IRIX 5.x).  Make sure that the DISPLAY environment
  270. variable is set correctly and that both the vadmin/sysadmdesktop and
  271. the shared library subsystems are installed on the graphics-less system
  272. (which they are in the default installation).
  273.  
  274. Under IRIX 5.x, look at the READMEs in /var/sysadmdesktop/rsysmanapps
  275. and /var/sysadmdesktop/sysmanapps to find out how to use 'chost' to run
  276. commands on remote systems. Finally, in a future release of IRIX 5.x,
  277. the sysadmdesktop tools will be able to manage remote systems *without*
  278. doing an rlogin.
  279.  
  280. ------------------------------
  281.  
  282. Subject: +  -5- How can I fix the objectserver when it gets confused?
  283. Date: 30 Apr 94 00:00:01 EST
  284.  
  285. The normal way:
  286.  
  287.     /etc/init.d/cadmin stop
  288.     /etc/init.d/cadmin clean
  289.     /etc/init.d/cadmin start
  290.  
  291. If this doesn't work, try this
  292.  
  293.     /etc/init.d/cadmin stop
  294.     rm -rf /var/Cadmin/data
  295.     /usr/Cadmin/bin/parseclasses
  296.     /etc/init.d/cadmin start
  297.  
  298. ------------------------------
  299.  
  300. Subject:    -6- How can I boot directly into single-user mode?
  301. Date: 20 Feb 94 00:00:01 EST
  302.  
  303. Use the PROM monitor's 'single' command.
  304.  
  305. For machines earlier than 4D35s, whose PROMs don't have that command,
  306. say 'boot dksc(0,1,0)unix initstate=s'. Replace 'dksc(0,1,0)' with the
  307. appropriate device and partition if your boot volume is something other
  308. than a SCSI device partitioned in the standard manner; see the chapter
  309. on the PROM monitor in the "Advanced Site and Server Administration
  310. Guide".
  311.  
  312. ------------------------------
  313.  
  314. Subject:    -7- How can I boot from a non-default disk?
  315. Date: 20 Jan 94 00:00:01 CST
  316.  
  317. Says Justin Mason <jmason@iona.ie>: If your disk is SCSI ID 4, do
  318.  
  319.   boot -f dksc(0,4,8)sash dksc(0,4,0)unix root=dks0d4s0
  320.  
  321. or
  322.  
  323.   setenv bootfile dksc(0,4,8)sash
  324.   setenv path dksc(0,4,8)
  325.   setenv root dks0d4s0            # This is the tricky part 
  326.   auto
  327.  
  328. from the PROM. The first method works once, so that subsequent reboots
  329. use SCSI ID 1, and the second method sets the PROM to boot from ID 4
  330. every time (until you reset the PROM variables).
  331.  
  332. ------------------------------
  333.  
  334. Subject:    -8- How can I boot my machine using a server on the other
  335.                 side of a router?
  336. Date: 24 Jan 94 00:00:01 EST
  337.  
  338. Tell the router to forward BOOTP packets. If it can't, NFS-mount the
  339. remote volumes on another machine on the same subnet and use the nearby
  340. machine for your boot server.
  341.  
  342. ------------------------------
  343.  
  344. Subject:    -9- Is it possible to remotely install IRIX over a network?
  345. Date: 20 May 93 00:00:01 CST
  346.  
  347. Yes. You can install IRIX from a remote machine which has a CD-ROM, a
  348. tape drive, or an IRIX distribution directory.  All of these scenarios
  349. (and several others) are described in detail in the "IRIS Software
  350. Installation Guide".  Examples are provided.
  351.  
  352. ------------------------------
  353.  
  354. Subject:   -10- Which IRIX CD is the program 'foo' on?
  355. Date: 10 Dec 93 00:00:01 EST
  356.  
  357. Load the CD and try 'grep foo /CDROM/dist/*.idb'. If you don't get any
  358. output, 'foo' isn't on that CD. If you do, it is, and one of the fields
  359. is the subsystem in which 'foo' lives.
  360.  
  361. ------------------------------
  362.  
  363. Subject:   -11- Why doesn't 'inst' work?
  364. Date: 16 Jan 94 00:00:01 EST
  365.  
  366. One possibility is that you're using an old 'inst' with new software.
  367. Always use an 'inst' at least as new as what you're installing.
  368.  
  369. ------------------------------
  370.  
  371. Subject: + -12- Why doesn't 'inst' work remotely?
  372. Date: 05 May 94 00:00:01 EST
  373.  
  374. Usually because it can't log in to the machine with the distribution
  375. media.  'inst' uses the guest account to do so, so make sure that
  376. guest on the machine on which you want to install software can rlogin
  377. to guest on the machine with the distribution media without a
  378. password.
  379.  
  380. ------------------------------
  381.  
  382. Subject:   -13- I reinstalled an IRIX subsystem to restore a missing
  383.                 file or get rid of a corrupted file, but it didn't help.
  384.                 Why not?
  385. Date: 13 Apr 94 00:00:01 EST
  386.  
  387. 'inst' doesn't bother to install a subsystem if the same or a newer
  388. version is already installed. Tell it to install anyway by saying 'set
  389. neweroverride' before you say 'go'. Removing the subsystem and
  390. reinstalling it will do more or less the same thing.
  391.  
  392. ------------------------------
  393.  
  394. Subject:   -14- How can I install IRIX onto a second disk which I can
  395.                 then move to another machine?
  396. Date: 20 Jan 94 00:00:01 EST
  397.  
  398. With difficulty. Many parts of the installation process assume that
  399. you're installing IRIX onto your system disk (SCSI ID 1). Just fiddle
  400. with SCSI ID switches and/or move disks around to make the disk onto
  401. which you want to install IRIX the system disk for the duration of the
  402. installation.
  403.  
  404. Furthermore, IRIX has many hardware dependencies, so you should only
  405. move system disks between absolutely identical machines. If you want to
  406. make a system disk for a machine without a network connection, CD-ROM
  407. or tape drive, the easiest and safest way is to borrow another CD-ROM
  408. or tape drive.
  409.  
  410. If you want to try anyway, Justin Mason <jmason@iona.ie> reports that
  411. the following works under IRIX 5.1.1:
  412.  
  413. Set up the disk, e.g. with SCSI id 4, fx a generic "[bo]otable"
  414. partition setup onto it, and mkfs the partitions. Copy sash, etc. from
  415. your system disk to the new disk with dvhtool. Boot up the miniroot
  416. as usual, go into inst, choose "admin" from the menu and do the
  417. following, replacing SCSI IDs and partition numbers as appropriate:
  418.  
  419.   umount /root
  420.   umount /root/usr
  421.   mount /dev/dsk/dks0d4s0 /root
  422.   mount /dev/dsk/dks0d4s6 /root/usr
  423.   mount                    # Just to check
  424.   return                # Go back to main inst menu
  425.  
  426. Then install as you like.
  427.  
  428. ------------------------------
  429.  
  430. Subject:   -15- How can I copy my system disk onto a second disk which I
  431.                 can then move to another machine?
  432. Date: 20 Feb 94 00:00:01 EST
  433.  
  434. See the article in the Jul/Aug 92 Pipeline and the addendum in the
  435. Nov/Dec 92 Pipeline, and note that the warning about hardware
  436. dependencies in the previous question applies here too.
  437.  
  438. ------------------------------
  439.  
  440. Subject:   -16- I think I've found a security hole in IRIX; whom do I
  441.                 notify at SGI?
  442. Date: 10 Dec 93 00:00:01 CST
  443.  
  444. In general, if you find a security problem (or think you have), you can
  445. send it to postmaster@sgi.com. This address gets a lot of mail, so you
  446. may want to CC your mail to one of the SGI employees who regularly post
  447. to Usenet. (Several have indicated that they will be glad to know about
  448. such things.)
  449.  
  450. You can also notify CERT <cert@cert.org>, who will contact the
  451. appropriate people from their contact list. They may take some time.
  452.  
  453. ------------------------------
  454.  
  455. Subject: ! -17- What security problems does IRIX have?
  456. Date: 30 Apr 94 00:00:01 EST
  457.  
  458. Before we start, some general comments:
  459.  
  460. - IRIX is too complex for this list to be complete. We only discuss
  461.   problems we know about. We don't discuss insecurely designed systems
  462.   (like YP) or ways in which you might misconfigure your system, only
  463.   bugs.  We don't discuss third-party software, free or not.
  464.  
  465. - Read rtfm.mit.edu:/pub/usenet/news.answers/security-faq and the books
  466.   and papers listed therein for general discussions of Unix security.
  467.   Look on ftp.cert.org:/ for CERT advisories, descriptions of what CERT
  468.   and CERT advisories are, and other security-related material.
  469.  
  470. - Prudence and space permit us to describe only how to close holes, not
  471.   to exploit them. Try comp.security.unix.
  472.  
  473. - Some of the fixes involve installing a new version of a setuid
  474.   binary.  Be sure that you 1) make it executable, setuid and owned by
  475.   the correct user and group (or it won't work), and 2) remove the old
  476.   version so bad guys can't use it!
  477.  
  478. Now for the holes themselves:
  479.  
  480. - CERT advisory CA-92:08, which you can get from
  481.  
  482.     ftp.cert.org:/pub/cert_advisories/CA-92:08.SGI.lp.vulnerability
  483.  
  484.   describes problems with the permissions of 'lp'-related parts of IRIX
  485.   which allow anyone who can log in as lp to get root access. They are
  486.   fixed in IRIX 4.0.5.  Briefly, the fix is
  487.  
  488.     su root
  489.     cd /usr/lib
  490.     chmod a-s,go-w lpshut lpmove accept reject lpadmin
  491.     chmod go-ws lpsched vadmin/serial_ports vadmin/users vadmin/disks
  492.     cd /usr/bin
  493.     chmod a-s,go-w disable enable
  494.     chmod go-ws cancel lp lpstat
  495.  
  496. - CERT advisory CA-93:16, which you can get from
  497.  
  498.     ftp.cert.org:/pub/cert_advisories/CA-93:16.sendmail.vulnerability
  499.  
  500.   describes a hole in /usr/lib/sendmail which allows anyone root
  501.   access, whether they can log in initially or not!  Fixed versions for
  502.   IRIX 4.0.x and 5.x are at
  503.  
  504.     ftp.sgi.com:/sgi/IRIX4.0/sendmail/
  505.     ftp.sgi.com:/sgi/IRIX5.0/sendmail/
  506.  
  507. - CERT advisory CA-93:17, which you can get from
  508.  
  509.     ftp.cert.org:/pub/cert_advisories/CA-93:17.xterm.logging.vulnerability
  510.  
  511.   describes a hole in /usr/bin/X11/xterm which allows any user root
  512.   access. It is fixed in IRIX 5.x.  A fixed version for IRIX 4.x is at
  513.  
  514.     ftp.sgi.com:/sgi/IRIX4.0/xterm/
  515.  
  516.   The 'fix', incidentally, is that logging is completely disabled.
  517.  
  518. - /usr/bsd/rdist has several holes which allow any user root access.
  519.   Some are fixed in IRIX 4.0.5x, but some are still present in all
  520.   versions of IRIX 4.0.x and 5.x, including the 4.0.5 version on
  521.   ftp.sgi.com. Close the hole with 'chmod -s'. rdist will then work
  522.   only when used by root.
  523.  
  524.   If your non-root users need 'rdist', there is a free version which
  525.   claims to be free of all known holes in usc.edu:/pub/rdist/.  Make
  526.   sure you get version 6.1 beta 3 or later.
  527.  
  528.   Note that CERT advisory CA-91:20
  529.   (ftp.cert.org:/pub/cert_advisories/CA-91:20.rdist.vulnerability) is
  530.   badly out of date.
  531.  
  532. - The 'lpr' subsystem in IRIX 4.0.x and 5.x has several holes which
  533.   allow a non-root user to become root. Note that 'lp' is SGI's usual
  534.   printing system; you only need 'lpr' if you need to deal with remote
  535.   printers. If you don't need 'lpr', make sure it isn't installed. (It
  536.   lives in the eoe2.sw.lpr subsystem.) If you do need 'lpr', there are
  537.   fixed versions for IRIX 4.0.x and 5.x at
  538.  
  539.     ftp.sgi.com:/sgi/IRIX4.0/lpr/lpr.latest.Z
  540.     ftp.sgi.com:/sgi/IRIX5.0/lpr/lpr.latest.Z
  541.  
  542.   The version dated 29 April works with NIS (YP).
  543.  
  544. - /usr/bin/under is an unused (!) part of 'rexd'. It is setuid root and
  545.   may allow root access, so 'chmod -s' it just in case. Note that SGI
  546.   ships IRIX with 'rexd' turned off because 'rexd' is itself a security
  547.   problem.
  548.  
  549. - /usr/etc/arp is setgid sys, allowing anyone who can log into your
  550.   machine to read files which should be readable only by group 'sys'.
  551.   Close the hole with 'chmod -s'. This prevents non-root users from
  552.   using 'arp' at all, but they don't generally need it.
  553.  
  554. - /usr/sbin/cdinstmgr is setuid root and is a script. Setuid scripts
  555.   are a well-known Unix security problem. IRIX ignores them by default,
  556.   but 'chmod -s /usr/sbin/cdinstmgr' just in case.
  557.  
  558. Finally, several aspects of SGI's default IRIX configuration were
  559. chosen for convenience, not security. Unless your machine is not
  560. networked, you may be more concerned about security than SGI assumed.
  561. Note that these items have been discussed on Usenet many times, and
  562. Usenet chatter is not a good way to change SGI policy. If they bother
  563. you, talk to your sales rep or just fix them yourself as follows:
  564.  
  565. - Several accounts come without passwords, including (but not limited
  566.   to) guest, 4Dgifts, demos, tutor, tour and particularly lp. Examine
  567.   /etc/passwd and lock all unnecessarily open accounts.  Note that 1)
  568.   parts of IRIX (e.g. 'inst') use the open guest account by default,
  569.   and 2) remote 'lp' clients need access to the lp account to print, so
  570.   you'll need to make other arrangements.
  571.  
  572. - 'xdm' does 'xhost +' by default when you log in. This allows anyone
  573.   to open windows on your display and even to record what you type at
  574.   your keyboard. Close this hole by removing the 'xhost +' from
  575.   /usr/lib/X11/xdm/Xsession and /usr/lib/X11/xdm/Xsession-remote. Note
  576.   that the X authority mechanism has several different problems in IRIX
  577.   versions before 5.2, so you'll need to say 'xhost +localhost' to run
  578.   DGL programs and 'xhost +otherhost' to display remote X programs. See
  579.   the graphics FAQ on how to set up X authority in IRIX 5.2 and later.
  580.  
  581. - At least some of the possible default values of the PATH environment
  582.   variable begin with the current directory. (The system interprets
  583.   either a period or the empty string in any component of PATH as the
  584.   current directory. PATH is colon-separated, so if it begins with a
  585.   colon the first component is the empty string.) This exposes you to
  586.   Trojan horse programs. Set PATH to a safe value (remove the current
  587.   directory, or at least move it to the end) in /etc/cshrc and/or
  588.   /etc/profile.
  589.  
  590. ------------------------------
  591.  
  592. Subject:   -18- How can I log more information about logins?
  593. Date: 22 Jan 94 00:00:01 EST
  594.  
  595. - 'last', 'who', etc. get remote login information from /etc/xutmp and
  596.   /etc/xwtmp. That information is only logged into these files if they
  597.   already exist. To create them, just say 'touch /etc/xutmp
  598.   /etc/xwtmp'. In IRIX 5.x, 'touch /var/adm/utmpx /var/adm/wtmpx'.
  599.  
  600. - As described in the login(1) manpage, you can add the line
  601.   'syslog=all' to /etc/config/login.options to log all login attempts,
  602.   not just successful ones, in /usr/adm/SYSLOG.
  603.  
  604. - 'ftpd', 'rshd' and 'tftpd' all have options ('-l' or '-L') which
  605.   cause them to log all accesses. See their manpages. 'ftpd' also has
  606.   '-ll' and '-lll' options (undocumented before IRIX 5.x) which log
  607.   individual file transfers and the sizes of those files respectively.
  608.   Add the options to the last fields (not the second-to-last) of the
  609.   appropriate lines of /usr/etc/inetd.conf (/etc/inetd.conf in IRIX
  610.   5.x), then do 'killall -HUP inetd' or reboot.
  611.  
  612. ------------------------------
  613.  
  614. Subject:   -19- I've just edited inetd.conf, and nothing changed. Why?
  615. Date: 10 Dec 93 00:00:01 CST
  616.  
  617. You need to make 'inetd' reread the file. Do 'killall -HUP inetd' or
  618. reboot.
  619.  
  620. ------------------------------
  621.  
  622. Subject: ! -20- How do I make an anonymous or restricted FTP account?
  623. Date: 04 May 94 00:00:01 EST
  624.  
  625. Read the ftpd(1M) manpage and/or the article in the March/April 1994
  626. Pipeline. However, both discussions have a serious error: the ftp
  627. account's home directory (/usr/people/ftp) should be owned and
  628. writable only by root, NOT ftp. You might also want to make the 'pub'
  629. directory "sticky" with 'chmod +t' (like /tmp and /usr/tmp) so that
  630. one user can't delete another's files. A script which sets up a secure
  631. anonymous FTP account is at
  632. viz.tamu.edu:/pub/sgi/software/ftp/make-anonftp.
  633.  
  634. ------------------------------
  635.  
  636. Subject:   -21- How do I set the number of processes allowed on my
  637.                 machine?
  638. Date: 23 Jan 94 00:00:01 CST
  639.  
  640. Change NPROC in usr/sysgen/master.d/kernel, run '/etc/autoconfig -f'
  641. and reboot. In IRIX 5.x, use 'systune'.
  642.  
  643. ------------------------------
  644.  
  645. Subject:   -22- I want to install a termcap for 'iris-ansi-net' on my
  646.                 non-SGI system, but I can't find a termcap file on the
  647.                 SGI.  Where can I get one?
  648. Date: 20 May 93 00:00:01 CST
  649.  
  650. SGIs use the system 5 style terminfo stuff.  What you want can be done
  651. though.  See the infocmp(1) manpage and the documentation about -r.
  652. This should do the job: 'infocmp -Cr iris-ansi'.
  653.  
  654. If you don't have infocmp, you have to install eoe2.sw.terminf, which
  655. is not installed by default.
  656.  
  657. ------------------------------
  658.  
  659. Subject:   -23- My SGI crashed and generated a file,
  660.                 /usr/adm/crash/vmcore.1. How can I examine this file to
  661.                 see what crashed my system?
  662. Date: 10 Dec 93 00:00:01 EST
  663.  
  664. For a start, you can use 'dbx' like so:
  665.  
  666.   dbx -k /usr/adm/crash/{unix,vmcore}.#
  667.   t
  668.   &putbuf/1000s
  669.  
  670. Some machines have a special 'dbx' for crash dumps,
  671. /usr/adm/crash/dbx.  If it exists, use it instead of /usr/bin/dbx.
  672.  
  673. There is also a script, 'crpt', which does this and more
  674. automagically.  One version lives at
  675. viz.tamu.edu:/pub/sgi/software/crpt/, but ask the TAC when you call to
  676. make sure you have the latest and greatest.
  677.  
  678. ------------------------------
  679.  
  680. Subject:   -24- How can I tell what hostname to use in /etc/exports?
  681. Date: 07 Feb 94 00:00:01 EST
  682.  
  683. NFS servers may need a particular form of a client's name in
  684. /etc/exports to allow the client access. This may not be obvious, for
  685. example if the server is also a router. Log in from the client to the
  686. server and say 'echo $REMOTEHOST' to see what the server thinks the
  687. client is called, and put that in /etc/exports.
  688.  
  689. IRIX 5.2's System Manager ('chost') should be able to determine the
  690. correct hostname for you.
  691.  
  692. ------------------------------
  693.  
  694. Subject:   -25- Why can't I export an NFS-mounted filesystem?
  695. Date: 10 Dec 93 00:00:01 CST
  696.  
  697. This is known as multi-hop NFS. It is not allowed or supported in
  698. (Sun's) NFS because it is not in general possible to detect errors such
  699. as infinite mount loops, on either the client or the server.
  700.  
  701. ------------------------------
  702.  
  703. Subject:   -26- Why can't Ultrix automount SGI filesystems?
  704. Date: 10 Dec 93 00:00:01 CST
  705.  
  706. Ultrix's automount uses an "untrusted" port for mount requests. Add
  707. an '-n' to the mountd lines in /usr/etc/inetd.conf (/etc/inetd.conf
  708. in IRIX 5.x), like so:
  709.  
  710. mountd/1    stream  rpc/tcp wait    root    /usr/etc/rpc.mountd     mountd -n
  711. mountd/1    dgram   rpc/udp wait    root    /usr/etc/rpc.mountd     mountd -n
  712.  
  713. then 'killall mountd' and 'killall -HUP inetd' or reboot.
  714.  
  715. ------------------------------
  716.  
  717. Subject:   -27- Why does 'tar' work strangely on a filesystem mounted
  718.                 from an SGI?
  719. Date: 03 Apr 94 00:00:01 EST
  720.  
  721. When user A extracts a file owned by user B from a tar archive, 'tar'
  722. makes the file owned by user A unless user A is the superuser.  Some
  723. systems allow users to give files away (e.g. IRIX); some do not (e.g.
  724. SunOS).  On some systems with the restricted behavior (SunOS among
  725. them), 'tar' tries to give the file to user B whether or not user A is
  726. the superuser, assuming that the chown system call will fail if user A
  727. is not. This is not true if user A is using 'tar' on (e.g.) a Sun to
  728. extract files onto a filesystem NFS-mounted from (e.g.) an SGI. 'tar'
  729. may create zero-length files or give away directories and then be
  730. unable to extract files into them.
  731.  
  732. Work around the problem by doing the 'tar' on the SGI or extracting
  733. onto a Sun filesystem. It is possible that third-party versions of
  734. 'tar' (e.g. GNU tar) are smarter; let us know if so. Don't turn the
  735. restricted_chown kernel variable on on the SGI; while this will fix the
  736. problem at hand, it will break SGI programs which need to give files
  737. away without running as root (notably /bin/mail).
  738.  
  739. ------------------------------
  740.  
  741. Subject:   -28- Is 'pcnfsd' available for the SGI?
  742. Date: 27 Feb 94 00:00:01 EST
  743.  
  744. For IRIX 4.0.x, look in ftp.sgi.com:/support/pcnfsd.sysV/. (Note that
  745. although SGI makes this available, they do not support it.) For IRIX 5.x,
  746. look in viz.tamu.edu:/pub/sgi/software/pcnfsd/.
  747.  
  748. ------------------------------
  749.  
  750. Subject:   -29- Can I export a CD-ROM from my SGI to a non-SGI?
  751. Date: 10 Dec 93 00:00:01 EST
  752.  
  753. Not in IRIX 4.0.x. You can in IRIX 5.x, as you would any other
  754. filesystem.
  755.  
  756. ------------------------------
  757.  
  758. Subject:   -30- Why can't I export an ISO 9660 CD-ROM using NFS?
  759. Date: 20 Feb 94 00:00:01 EST
  760.  
  761. You can, but only to another SGI (see the previous question) and
  762. there's a catch. Add the CD-ROM filesystem to /etc/exports and export
  763. it with 'exportfs' *before* you mount the CD-ROM.  This chicanery is
  764. not necessary in IRIX 5.x. For more detail, read
  765. viz.tamu.edu:/pub/sgi/hardware/exporting-iso-9660-cdrom or the article
  766. in the Jan/Feb 93 Pipeline, or for an up-to-date copy call the TAC and
  767. ask for SGI's writeup on "Mounting an ISO 9660 CD Across NFS".
  768.  
  769. ------------------------------
  770.  
  771. Subject:   -31- How can I read an IRIX (EFS) CD-ROM on a machine which
  772.                 doesn't use EFS?
  773. Date: 09 Jan 94 00:00:01 EST
  774.  
  775. You want 'efslook', in viz.tamu.edu:/pub/sgi/software/efslook/.
  776.  
  777. ------------------------------
  778.  
  779. Subject:   -32- Why is my network license daemon ('netlsd') exiting?
  780. Date: 20 May 93 00:00:01 CST
  781.  
  782. For netlsd to run, you need to have 'llbd' and 'glbd' installed and
  783. running.  A complete debugging procedure is in the netls release notes,
  784. which can be read with 'relnotes netls_eoe 5'.
  785.  
  786. ------------------------------
  787.  
  788. Subject:   -33- Why isn't /usr/adm/SYSLOG being updated?
  789. Date: 05 Jul 93 00:00:01 CST
  790.  
  791. Thanks to Vernon Schryver <vjs@rhyolite.wpd.sgi.com> here.
  792.  
  793. Popular causes include:
  794.  
  795. - running out of disk space.
  796.   Once syslogd is unable to write to /usr/adm/SYSLOG, it won't try
  797.   again until it is `killall -HUP syslogd`.
  798.  
  799. - installing IRIX 4.0.X and failing to heed the nagging from
  800.   the system when it is rebooted to run 'versions changed' and combine
  801.   new and old configuration files.  In this case, the trouble is in
  802.   /usr/spool/cron/crontabs/root.
  803.  
  804. ------------------------------
  805.  
  806. Subject:   -34- Why is 'rusers' showing users who aren't really logged
  807.                 in?
  808. Date: 30 Dec 93 00:00:01 CST
  809.  
  810. This is a well-known bug in IRIX 4.0.X wherein /etc/utmp is not being
  811. updated properly after a user logout.  'rusers' (and other programs)
  812. are simply reporting the non-updated contents of /etc/utmp.
  813.  
  814. Fixes have been provided by jer@blaise.cif.rochester.edu, David Hinds
  815. <dhinds@allegro.stanford.edu> and Patrick M. Ryan <pat@gsfc.nasa.gov>.
  816. They can be found at viz.tamu.edu:/pub/sgi/software/utmp/.
  817.  
  818. ------------------------------
  819.  
  820. Subject:   -35- How do I make a bootable tape from an IRIX 4.0.X CD?
  821. Date: 20 Feb 94 00:00:01 EST
  822.  
  823. See the Sep/Oct 93 Pipeline for a detailed description, or just follow
  824. Dave Olson <olson@sgi.com>'s summary: Take a look at the distcp(1M)
  825. manpage, and do something like
  826.  
  827.     tapehost# mount -o ro cdhost:/CDROM /mnt
  828.     tapehost# distcp /mnt/dist /dev/nrtape
  829.  
  830. Note that 'fx', 'ide', and 'sash' for all machines are in the dist/sa
  831. file.  'sa' is an image of the first part of the tape; use 'mkbootape
  832. -f sa -l' to see the contents.
  833.  
  834. ------------------------------
  835.  
  836. Subject:   -36- Why can't I boot one of the stand-alone programs on a
  837.                 tape or CD?
  838. Date: 03 Apr 94 00:00:01 EST
  839.  
  840. One reason is that some CPU names are preceded by periods and some
  841. aren't. Another is that the Indigo R4000 and later CPUs use the suffix
  842. 'ARCS', not 'IP20' or whatever as one might expect from 'hinv'. For
  843. example, the correct command to boot fx directly from the PROM monitor
  844. on an Indigo R4000 is 'boot -f dksc(ctlr,unit,8)sashARCS
  845. dksc(ctlr,unit,7)stand/fx.ARCS'. Note the use of 'ARCS' instead of
  846. 'IP20' and the missing period in 'sashARCS'.
  847.  
  848. ------------------------------
  849.  
  850. Subject:   -37- Why is /debug or /proc full of huge files?
  851. Date: 10 Dec 93 00:00:01 EST
  852.  
  853. Those aren't disk files, they're interfaces to running processes.  Read
  854. the debug(4) and/or proc(4) manpages.
  855.  
  856. ------------------------------
  857.  
  858. Subject:   -38- Why do some programs parse /etc/fstab incorrectly?
  859. Date: 10 Dec 93 00:00:01 EST
  860.  
  861. In IRIX 4.0.5, some programs (e.g. 'fsr') misinterpret lines in
  862. /etc/fstab, so that, e.g.,
  863.  
  864.   /dev/usr /usr efs rw,raw=/dev/rusr,quota 0 0
  865.  
  866. would cause 'fsr' to think that the raw device pathname was
  867. "/dev/rusr,quota" instead of "/dev/rusr". There is no such device, so
  868. /dev/rusr would never be defragmented. You can work around this by
  869. putting the "raw" option last:
  870.  
  871.   /dev/usr /usr efs rw,quota,raw=/dev/rusr 0 0
  872.  
  873. This is fixed in IRIX 5.x.
  874.  
  875. ------------------------------
  876.  
  877. Subject:   -39- My Indigo's Ethernet performance is dog-slow. What
  878.                 gives?
  879. Date: 10 Dec 93 00:00:01 EST
  880.  
  881. Call the TAC. You need the "E++" patch, or IRIX 4.0.5IOP ("Indigo Only
  882. Patch"), which includes the E++ patch.
  883.  
  884. ------------------------------
  885.  
  886. Subject:   -40- My Indigo running 4.0.5IOP is getting SIGSEGVs and
  887.                 crashing. What gives?
  888. Date: 12 Jan 94 00:00:01 EST
  889.  
  890. Make sure you've installed the 4.0.5IOP NFS maintenance patch along
  891. with the rest of 4.0.5IOP. If you're sure you have, call the TAC.
  892. You may need the "IP20 ethernet patch".  This comes *after* 4.0.5IOP,
  893. and is not to be confused with the older "E++ patch" (see the previous
  894. question).
  895.  
  896. ------------------------------
  897.  
  898. Subject:   -41- Why is my Indigo2 panicking?
  899. Date: 10 Jan 94 00:00:01 EST
  900.  
  901. There are several keyboard-related bugs in IRIX 4.0.5H and 4.0.5IOP
  902. which cause Indigo2s to crash or freeze. One sign that these particular
  903. bugs are responsible is the message "PANIC: Timeout Table Overflow" or
  904. "WARNING: Couldn't allocate streams buffer" in /usr/adm/SYSLOG.  They
  905. will be fixed in IRIX 5.2, and in the meantime you can get the "Indigo2
  906. keyboard patch" (aka "pckm patch") from SGI.
  907.  
  908. ------------------------------
  909.  
  910. Subject:   -42- What's this 'iotim' error in my syslog?
  911. Date: 12 Feb 94 00:00:01 EST
  912.  
  913. It's a bug in 'rpc.rstatd' which affects several programs including
  914. 'ruptime' and 'sysmeter'. In IRIX 4.0.5H and later, 'rpc.rstatd'
  915. ignores the problem (returning all but the SCSI disk stats which cause
  916. the error) but still generates a message.  The problem is completely
  917. fixed in IRIX 5.x.  The pre-4.0.5H 'rpc.rstatd' says
  918.  
  919.   rstatd[4840]: read: iotim: No such device or address
  920.  
  921. and the post-4.0.5H 'rpc.rstatd' says
  922.  
  923.   rstatd[4941]: read: bad iotim, no disk stats: No such device or address
  924.  
  925. If you see the former, get the patched 'rpc.rstatd' from
  926. ftp.sgi.com:/support/rpc.rstatd or (for Indigos) upgrade to IRIX
  927. 4.0.5IOP. If you see the latter, relax and wait for IRIX 5.x.
  928.  
  929. ------------------------------
  930.  
  931. Subject:   -43- Why can't 'lp' read my file?
  932. Date: 10 Dec 93 00:00:01 EST
  933.  
  934. 'lp' is setuid, so it can only read world-readable files. You can say
  935. 'lp < file' if you don't want to make your file world-readable.
  936.  
  937. ------------------------------
  938.  
  939. Subject:   -44- How can I use 'lpr' to print to my local printer?
  940. Date: 10 Dec 93 00:00:01 EST
  941.  
  942. SGI provides 'lpr' for printing on remote printers, and does not
  943. support it for local printing. One way to do it anyhow is to make an
  944. /etc/printcap entry with an output filter which is just a wrapper
  945. around 'lp'. If that isn't crystal-clear, call the TAC and ask for
  946. their "faxable" on "Integrating The AT&T Spooler With The BSD LPR Print
  947. Spooler". A not-guaranteed-to-be-up-to-date copy is at
  948. viz.tamu.edu:/pub/sgi/software/lp-lpr/lpr-to-lp.
  949.  
  950. ------------------------------
  951.  
  952. Subject:   -45- How can I use 'lp' to print to an 'lpr'-controlled
  953.                 printer?
  954. Date: 10 Dec 93 00:00:01 EST
  955.  
  956. Two possible ways:
  957.  
  958. - Write an 'lp' interface script that calls 'lpr'. Impressario 1.1 can
  959.   do this for you. If you don't have Impressario you can do it yourself
  960.   or call SGI and ask for their writeup, "LPTOLPR, A Model File for
  961.   LP", which includes (in fact, consists of) just such an interface
  962.   script. A not-guaranteed-to-be-up-to-date copy is at
  963.   viz.tamu.edu:/pub/sgi/software/lp-lpr/lp-to-lpr.
  964.  
  965. - Write an 'lp' replacement script that calls 'lpr'. One such script
  966.   is at viz.tamu.edu:/pub/sgi/software/lp-lpr/lp-wrapper-for-lpr.
  967.  
  968. ------------------------------
  969.  
  970. Subject:   -46- How can I tell 'lp' to turn banner printing or page
  971.                 reversal off or on?
  972. Date: 08 Jan 94 00:00:01 CST
  973.  
  974. 'lp' controls printers via shell scripts, called 'models', which live
  975. in /usr/spool/lp/model. When you install a printer, the appropriate
  976. model script is copied to /usr/spool/lp/interface/<name-of-printer>.
  977.  
  978. To temporarily change a printer's behavior, look at the manpage for its
  979. interface script (or, if there is none, the script itself) to see what
  980. options it wants, and pass them to the script with 'lp's '-o' option.
  981. For example, 'lp -o"-nobanner" file' tells a "Generic Postscript"
  982. printer (described in the gpsinterface(1) manpage) to print 'file'
  983. without a banner page.
  984.  
  985. To permanently change a printer's behavior, edit its interface script.
  986. The following are true for "Generic Postscript" printers, but the idea
  987. is the same for others:
  988.  
  989. - To turn banner printing off or on, change the line 'BANNER=1' to
  990.   'BANNER=0' or vice versa.
  991.  
  992. - To turn page reversal off or on, change the line
  993.   'send=/usr/lib/print/lptops' to 'send="/usr/lib/print/lptops -U"'
  994.   (note the quotes) or vice versa.
  995.  
  996. ------------------------------
  997.  
  998. Subject:   -47- Why can't I 'rdist' files between Suns and SGIs?
  999. Date: 10 Dec 93 00:00:01 EST
  1000.  
  1001. Sun's 'rdist' expects SGI's 'rdist' to live in /usr/ucb, but it's
  1002. actually in /usr/bsd. Make a symbolic link from /usr/ucb/rdist to
  1003. /usr/bsd/rdist and all will be well.
  1004.  
  1005. ------------------------------
  1006.  
  1007. Subject:   -48- How do I add a static route?
  1008. Date: 10 Mar 94 00:00:01 EST
  1009.  
  1010. Some sites handle IP routing by designating a routing machine and
  1011. having all other hosts define a static route to that machine. The way
  1012. to do this on SGIs is in the /etc/init.d/network.local script.
  1013.  
  1014. 1) Read the paragraph just before the copyright at the top of
  1015.    /etc/init.d/network and make the links it specifies.
  1016.  
  1017. 2) Put something like the following in /etc/init.d/network.local,
  1018.    replacing ROUTER'S.IP.ADDRESS.HERE with the address of your router.
  1019.  
  1020.   #! /bin/sh
  1021.   case "$1" in
  1022.   'start')
  1023.       /usr/etc/route add default ROUTER'S.IP.ADDRESS.HERE 1 ;;
  1024.   'stop')
  1025.       /usr/etc/route delete default ROUTER'S.IP.ADDRESS.HERE ;;
  1026.   *)
  1027.       echo "Usage: $0 {start|stop}" ;;
  1028.   esac
  1029.  
  1030. If you NFS-mount disks from the other side of the static route, they
  1031. will not be unmounted properly during shutdown. You can fix this by
  1032. making the links so that /etc/init.d/network.local runs before
  1033. /etc/init.d/network: 'ln -s /etc/init.d/network.local
  1034. /etc/rc0.d/K41network' instead of '/etc/rc0.d/K39network'.
  1035.  
  1036. ------------------------------
  1037.  
  1038. Subject:   -49- How can I make the 'slip' command advertise the Ethernet
  1039.                 address of the SLIP client?
  1040. Date: 10 Dec 93 00:00:01 EST
  1041.  
  1042. You can't. Just add something like
  1043.  
  1044.   /usr/etc/arp -s $USER `netstat -ia | grep :` pub
  1045.  
  1046. to the shell script in which you start the SLIP process. $USER is the
  1047. SLIP client. The 'netstat | grep' part gets the host's Ethernet
  1048. address, and 'arp' advertises the host as an ARP server for $USER. See
  1049. also the arp(1M) manpage.
  1050.  
  1051. ------------------------------
  1052.  
  1053. Subject:   -50- How can I set up 'sendmail' to pass 8-bit characters?
  1054. Date: 12 Feb 94 00:00:01 EST
  1055.  
  1056. Dunno, offhand, but many experts say "don't try". RFC822 requires mail
  1057. transport agents to *clear* the eighth bit, and many hosts do. Some
  1058. which don't may crash when they get mail with the eighth bit set.
  1059. Instead, use a MIME-compatible mail program. MIME, described in
  1060. RFC1521, is a standard for enclosing non- RFC822 material in your
  1061. mail.  The apps FAQ discusses several mail programs which support it.
  1062.  
  1063. Nonetheless, if someone wants to tell us about putting SGI's 'sendmail'
  1064. into 8-bit mode we'll note it here.
  1065.  
  1066. ------------------------------
  1067.  
  1068. Subject:   -51- Why are my mailbox files changing ownership?
  1069. Date: 17 Jan 94 00:00:01 CST
  1070.  
  1071. If your mail directory is mounted from another machine, your machine
  1072. does not have root access, and the other machine has BSD-style
  1073. "restricted chown" (either because it's not an SGI or because someone
  1074. turned restricted chown on), /bin/mail will change mail file ownership
  1075. when delivering local mail. Without unrestricted chown or root access,
  1076. /bin/mail is unable to give mail files back to their owners after
  1077. delivering mail. You can fix the problem by turning off restricted
  1078. chown on the other machine (if it's an SGI), exporting the mail
  1079. directory with root access for your machine, or waiting for IRIX 5.2,
  1080. in which the problem will be fixed.
  1081.  
  1082. ------------------------------
  1083.  
  1084. Subject:   -52- Why isn't a valid user getting their mail?
  1085. Date: 24 Jan 94 00:00:01 EST
  1086.  
  1087. IRIX' mail system requires "valid users" to have both valid password
  1088. file entries (whether local or via NIS) and home directories. The
  1089. latter often trips one up when installing POP servers and whatnot,
  1090. where home directories aren't really necessary. Just make a fake one.
  1091.  
  1092. ------------------------------
  1093.  
  1094. Subject:   -53- How can SGIs and Suns share a mail spool?
  1095. Date: 05 Feb 94 00:00:01 EST
  1096.  
  1097. Paul Riddle <paulr@umbc.edu> has written up how he did it. Read
  1098. ftp.umbc.edu:/pub/sgi/shared-spool.text.
  1099.  
  1100. ------------------------------
  1101.  
  1102. Subject:   -54- What's an "unknown mailer error"?
  1103. Date: 20 Feb 94 00:00:01 EST
  1104.  
  1105. There's a list in viz.tamu.edu:/pub/sgi/software/mail/mail-errors.
  1106.  
  1107. ------------------------------
  1108.  
  1109. Subject:   -55- What's "mailbox: Error 0"?
  1110. Date: 05 Mar 94 00:00:01 EST
  1111.  
  1112. It's a harmless bug; don't worry about it. It is present in IRIX 4.0.x
  1113. before 4.0.5H/4.0.5IOP and fixed in those and later versions.
  1114.  
  1115. ------------------------------
  1116.  
  1117. Subject:   -56- Can I change my full name or login shell without being
  1118.                 superuser?
  1119. Date: 16 Mar 94 00:00:01 EST
  1120.  
  1121. Maybe. IRIX 4.x has no 'chfn' or 'chsh', so if you're a local user
  1122. you're stuck. However, if your account is on NIS (Yellow Pages) you can
  1123. use 'ypchpass'. You might also ask your superuser to install one of the
  1124. many free implementations of 'chfn' and/or 'chsh'; one is in volume 3 of
  1125. comp.sources.unix (ftp.uu.net:/usenet/comp.sources.unix/volume3/).
  1126.  
  1127. ------------------------------
  1128.  
  1129. Subject:   -57- How do I extend an existing filesystem onto a new disk?
  1130. Date: 24 Jan 94 00:00:01 EST
  1131.  
  1132. Back up the existing filesystem (just in case) then run 'mklv' and
  1133. 'growfs'. 'mklv' and 'growfs' are nondestructive, so you don't need to
  1134. restore the backup unless you screw up. Don't use 'mkfs', which does
  1135. destroy existing data.
  1136.  
  1137. ------------------------------
  1138.  
  1139. Subject:   -58- How can I measure my network's reliability?
  1140. Date: 13 Feb 94 00:00:01 EST
  1141.  
  1142. Don't worry about collisions. They are part of normal operation on a
  1143. crowded Ethernet. You *should* worry about late collisions (which are
  1144. logged to the console) and lost packets (which you can easily measure
  1145. with the command 'ping -fs 3000 -c 1000 someotherhost'), which usually
  1146. mean network hardware problems or a misconfigured bridge or router.
  1147.  
  1148. ------------------------------
  1149.  
  1150. Subject:   -59- How do I know if I need more memory and/or swap space?
  1151. Date: 20 Feb 94 00:00:01 EST
  1152.  
  1153. If processes are killed due to lack of memory/swap, you need more
  1154. memory and/or swap space. If your CPU is always waiting for swapping
  1155. (run 'osview' and look at the "%Swap" entry under "Wait Ratio") you
  1156. need more memory.
  1157.  
  1158. ------------------------------
  1159.  
  1160. Subject:   -60- How much swap space should I have per megabyte of
  1161.                 memory?
  1162. Date: 20 Feb 94 00:00:01 EST
  1163.  
  1164. An oft-recommended ratio is X memory:2.5 X swap, but this may be too
  1165. slow. Decide how much of your favorite program (plus IRIX) needs to be
  1166. resident for good performance and how much doesn't, and make sure you
  1167. have enough memory for the former and enough memory plus swap for the
  1168. latter. Put "rmem" and "swp" in your ~/.grosview file, run 'gr_osview'
  1169. and run your favorite program to see what it needs.
  1170.  
  1171. ------------------------------
  1172.  
  1173. Subject:   -61- How can I increase my swap space?
  1174. Date: 20 Feb 94 00:00:01 EST
  1175.  
  1176. See the Jan/Feb 93 Pipeline for a detailed writeup, or call the TAC and
  1177. have them fax you the very latest version. It will be much easier in
  1178. IRIX 5.x, which will support swapping to files.
  1179.  
  1180. ------------------------------
  1181.  
  1182. End of sgi/faq/admin Digest
  1183. ******************************
  1184. -- 
  1185. The SGI FAQ group                                sgi-faq@viz.tamu.edu
  1186. Finger us for info on the SGI FAQs, or look in viz.tamu.edu:/pub/sgi.
  1187.  
  1188.